using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

namespace GameUI {
	public class WeaponShadowController:MonoBehaviour {
		void Start() {
			image=GetComponent<Image>();
		}

		void Update() {

			image.fillAmount=1-Player.instance.GetWeapon(weaponSlot).weapon.displayAmount;
		}

		[SerializeField] int weaponSlot;
		Image image;
	}
}